<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('space','header'); ?>
<div id="main">
  <div id="left">
    <div id="space">
      <h5><?php echo $username;?> 的个人资料</h5>
      <img src="<?php echo thumb($avatar, 150, 150);?>" alt="<?php echo $username;?>" height="150" width="150"/>
      <div id="memberinfo">
      <p>
  用户名：<a href="<?php echo $MODULE['member']['url'];?>view.php?userid=<?php echo $userid;?>"><?php echo $username;?></a><br />
  最后登录：<?php echo date('Y-m-d H:i', $lastlogintime);?>
  </p>
    </div>
      <ol><li class="edit"><a href="<?php echo $MODULE['message']['url'];?>send.php?userid=<?php echo $userid;?>" class="edit">写短消息</a></li></ol>
      <div class="clear"></div>
    </div>
    <ol>
      <li class="local"><a href="<?php echo SITE_URL;?>">返回网站首页</a></li>
      <?php if($is_host) { ?><li class="exit"><a href="<?php echo $MODULE['member']['url'];?>logout.php">退出登录</a></li><?php } ?>
    </ol>
  </div>
  <div id="right">
<p id="position"> <strong>当前位置：</strong><a href="">首页</a><?php echo $username;?> 的个人空间</p>
     <div class="modellist_2">
      <h3>图片文章</h3>
      <div class="modellist_2_1 bdr_2" style="width:100%;">
        <ul >
          <?php echo tag('phpcms', 'tag_content_cat_pic', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `thumb`!=''  AND  `userid`='$userid'  ORDER BY contentid DESC", 0, 6, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '16',  'width' => '105',  'height' => '80',));?>
        </ul>
      </div>
   <div class="modellist_2_2 mar_10" style="width:100%;">
        <ul>
           <?php echo tag('phpcms', 'tag_content_blog_list', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url FROM `phpcms_content` WHERE  status=99   AND  `userid`='$userid'  ORDER BY contentid DESC", $page, 20, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '80',));?>
        </ul>
      </div>
    </div>
  </div>
  </div>
</div>
<div class="clear"></div>
<span id="toggle_pannel"></span>
<?php include template('phpcms','footer'); ?>